package com.cql.common.core.DTO;

import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author cql
 */
@Data
public class MomentDTO implements Serializable {

    private Long momentId;

    private Long userId;

    private String title;

    private String content;

    private String description;

    private Integer status;

    private Integer dataScope;

    private Long addr;

    @Size(min = 0, max = 10, message = "最多选择10个标签")
    private List<TagDTO> tags;

    @Size(min = 0, max = 9, message = "最多可设置9张图片")
    private List<PictureDTO> pictures;

}
